package com.zdgk.core.control;

import com.zdgk.core.control.read.modbus.ModbusMasterConfig;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
@AllArgsConstructor
public class ControlRunner implements ApplicationRunner {

    private final ModbusMasterConfig modbusMasterConfig;


    @Override
    public void run(ApplicationArguments args) {
//        if (!modbusMasterConfig.isConnected()) {
//            log.error("ModbusRtuMaster启动异常导致程序退出");
//            System.exit(1);
//        }
    }
}
